#include "fileoperation.h"
#include "qdir.h"

FileOperation::FileOperation()
{

}

bool FileOperation:: isDirExist(QString fullPath)
{
    QDir dir(fullPath);
    if(dir.exists())
    {
        return true;
    }
    else
    {
        bool ok = dir.mkpath(fullPath);//创建多级目录
        return ok;
    }
}

